home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2395 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.eunet.fi!fipnet!kone!jsaarinen
  2. Newsgroups: comp.sys.amiga.programmer
  3. X-NewsReader: IntuiNews 1.2b (31.7.94)
  4. References: <4e882m$k7u@sunsystem5.informatik.tu-muenchen.de> <1234.6598T1186T2211@ifi.uio.no>
  5. From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
  6. Date: Tue, 30 Jan 96 20:30:07 UT
  7. Comments: Illegal date header - new date added by quicknews
  8. X-Original-Date: Tue, 30 Jan 96 17:54:18 
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: binary
  12. Subject: Re: PPC compilers
  13. Message-ID: <38232226@kone.fipnet.fi>
  14.  
  15.  
  16. > >|> Using
  17. > >|>         sub.w   dx,dx
  18. > >|>
  19. > >|> instead of
  20. > >|>
  21. > >|>         moveq   #0,d0
  22. > >|>         add.l   d1,d0
  23. > >what about cmp.x dx,dx
  24. > >won't trash dx ;) the aim was to get X flag 0 right ?
  25. > Yes, the aim was to get X flag 0 right!
  26.  
  27. Not zero, but to the correct value (0 or 1) depending on the
  28. adder! Because addx decimals "come one loop after".
  29.  
  30. > No they dont, a typical tmap loop looks like this:
  31. > TmapFill:       MACRO
  32. >         move.w  a4,d5                   ;2 cycles
  33. >         move.b  d4,d5                   ;2 cycles
  34. >         move.l  d5,a5                   ;2 cycles
  35. >         move.b  (a5),(a1)+              ;7 cycles
  36. >         addx.l  d2,d4                   ;2 cycles
  37. >         adda.l  d3,a4                   ;2 cycles
  38. >                 ENDM
  39.  
  40. "Adda.l an,a4" should be one cycle faster on the 040. Dont
  41. know about the 060.
  42.  
  43. --                               _
  44. a Stellar programmer          _ //
  45. "Amiga - back for the future" \X/
  46.